package com.firewolf.hibernate;

import java.util.Set;

public class Grade {
	private Integer id;
	private String name;
	private String desci;
	private Set<Student> students;
	private Double avgscore;
	public Grade() {
		super();
	}
	public Grade(String name, String desci,double avgscore) {
		super();
		this.name = name;
		this.desci = desci;
		this.setAvgscore(avgscore);
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDesci() {
		return desci;
	}
	public void setDesci(String desci) {
		this.desci = desci;
	}
	public Set<Student> getStudents() {
		return students;
	}
	public void setStudents(Set<Student> students) {
		this.students = students;
	}
	@Override
	public String toString() {
		return "Grade [id=" + id + ", name=" + name + ", desci=" + desci + "]";
	}
	public Double getAvgscore() {
		return avgscore;
	}
	public void setAvgscore(Double avgscore) {
		this.avgscore = avgscore;
	}
	
	
	
}
